const HttpApi = require('./http-api')
const http2 = require('http2-wrapper');

//创建基础请求
const createHttp = (API_KEY,API_SECRET,API_PASS,opt={})=>{
	return new HttpApi(API_KEY, API_SECRET,API_PASS, { ...opt, transport: http2 });
}


module.exports =  createHttp;